package com.cn.serverline.lineicp.workshopPlan.entity;

import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.EqualsAndHashCode;
import lombok.Data;

/**
 * 周计划下发历史
 *
 * @author 田江余
 * @since 2024年8月6日
 */
@TableName("PLAN_WEEK_STAGE_DAYS_HISTORY")
@Data
@EqualsAndHashCode
public class WeekStageDaysHistory extends BaseEntity{

    /**
     * 主键ID
     */
    @ChineseDescription("主键ID")
    @TableId(value = "ID", type = IdType.ASSIGN_ID)
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    /**
     * 年份
     */
    @ChineseDescription("年份")
    @TableField("YEAR")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long year;

    /**
     * 月份
     */
    @ChineseDescription("月份")
    @TableField("MONTH")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long month;

    /**
     * 乐观锁
     */
    @ChineseDescription("乐观锁")
    @TableField("VERSION")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long version;

    /**
     * 备注
     */
    @ChineseDescription("备注")
    @TableField("REMARK")
    private String remark;
}
